package demo2;

public class Person {
    private int age;

    public int getAge() {
        if(this.age < 0){
            return 0;
        }else if(this.age > 200){
            return 200;
        }else{
            return this.age;
        }
        //return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
